package gulimall.feign;

import gulimall.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author HLF
 * @date 2022/8/30 21:07
 */
@FeignClient(value = "gulimall-member",path = "/member")
@Service
public interface MemberFeignService {
    /**
     * 根据member的id查询地址列表
     */
    @GetMapping("/memberreceiveaddress/address/{memberId}")
    R addressList(@PathVariable("memberId") Long memberId);
}
